package com.giantlizard.cloud.common.security.constants;

/**
 * 安全相关常量
 */
public class SecurityConstants {
    
    /** 令牌自定义标识 */
    public static final String AUTHENTICATION = "Authorization";

    /** 令牌前缀 */
    public static final String PREFIX = "Bearer ";

    /** 令牌秘钥 */
    public static final String SECRET = "giantlizardCloud=n3i2EkE4bwktj7fK8gesRXsW1fNE4ZNm1KfHx+2hPQNaA9NCC/Yk4uDhh7asoK2vppLPOsENtxaTMrPbonx+iQ==";

    /** 权限缓存前缀 */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /** 用户权限缓存前缀 */
    public static final String URL_PERMISSION_KEY = "url_permissions:";

    /** 用户ID字段 */
    public static final String DETAILS_USER_ID = "user_id";

    /** 用户名字段 */
    public static final String DETAILS_USERNAME = "username";

    /** 机构ID字段 */
    public static final String DETAILS_ORG_ID = "org_id";

    /** 登录用户 */
    public static final String LOGIN_USER = "login_user";

    /** 角色权限 */
    public static final String ROLE_PERMISSION = "role_permission";

    /** 内部请求 */
    public static final String INNER = "inner";

    /** 用户ID字段 */
    public static final String USER_KEY = "user_key";
    
    /** 用户名字段 */
    public static final String USER_NAME = "user_name";
    
    /** 用户TOKEN字段 */
    public static final String USER_TOKEN = "user_token";
} 